from django.db import models
from django.utils import timezone
class Message(models.Model):
    TYPE = (
        ('加好友', "加好友"),
        ('消息通知', "消息通知"),
        ('透传', "透传")
    )
    type = models.CharField(max_length=254, choices=TYPE,default="透传",verbose_name="消息类型")
    senderAccount= models.CharField(max_length=254, null=True, blank=True,verbose_name="发自帐户")
    accepterAccount= models.CharField(max_length=254, null=True, blank=True,verbose_name="发到帐户")
    content = models.CharField(max_length=254, default="",verbose_name="消息内容")
    createTime = models.DateTimeField(default=timezone.now, verbose_name='创建时间', null=False, blank=False)

